package pojo;

/**
 * 将SongRequests表中的songId与Songs表连接查询所产生的实体类
 * 不能把视图作为实体类，因为音乐盒子中的音乐是需要删除的！！！
 */
public class MusicBox {

    private int musicBoxId;  // 对应 musicBoxId
    private int songId;      // 对应 songId
    private String songName; // 对应 songName
    private String songDescription; // 对应 songDescription
    private int songCategory; // 对应 songCategory
    private String uploadPath; // 对应 uploadPath

    // 构造方法
    public MusicBox() {
    }
    public MusicBox(int musicBoxId, int songId, String songName, String songDescription, int songCategory, String uploadPath) {
        this.musicBoxId = musicBoxId;
        this.songId = songId;
        this.songName = songName;
        this.songDescription = songDescription;
        this.songCategory = songCategory;
        this.uploadPath = uploadPath;
    }

    // Getter 和 Setter 方法
    public int getMusicBoxId() {
        return musicBoxId;
    }

    public void setMusicBoxId(int musicBoxId) {
        this.musicBoxId = musicBoxId;
    }

    public int getSongId() {
        return songId;
    }

    public void setSongId(int songId) {
        this.songId = songId;
    }

    public String getSongName() {
        return songName;
    }

    public void setSongName(String songName) {
        this.songName = songName;
    }

    public String getSongDescription() {
        return songDescription;
    }

    public void setSongDescription(String songDescription) {
        this.songDescription = songDescription;
    }

    public int getSongCategory() {
        return songCategory;
    }

    public void setSongCategory(int songCategory) {
        this.songCategory = songCategory;
    }

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    // toString 方法，方便打印对象信息
    @Override
    public String toString() {
        return "MusicBox{" +
                "musicBoxId=" + musicBoxId +
                ", songId=" + songId +
                ", songName='" + songName + '\'' +
                ", songDescription='" + songDescription + '\'' +
                ", songCategory=" + songCategory +
                ", uploadPath='" + uploadPath + '\'' +
                '}';
    }
}
